<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:80:"F:\phpstudy\WWW\ypy\ypy\hwss1\public/../application/home\view\base\withdraw.html";i:1552561513;s:68:"F:\phpstudy\WWW\ypy\ypy\hwss1\application\home\view\base\header.html";i:1552465019;s:66:"F:\phpstudy\WWW\ypy\ypy\hwss1\application\home\view\base\menu.html";i:1552561513;s:68:"F:\phpstudy\WWW\ypy\ypy\hwss1\application\home\view\base\footer.html";i:1552465019;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个人中心</title>
    <link rel="stylesheet" href="/home/css/reset.css">
    <link rel="stylesheet" href="/home/css/head-footer.css">
    <link rel="stylesheet" href="/home/css/user-center.css">
</head>
<body>
<div class="header-wrap">
    <div class="header-top-wrap">
        <div class="header-top clearfixa">
            <div class="logo-box fl">
                <a href="javascript:void(0)">
                    <img src="/home/images/logo.png" alt="">
                </a>
            </div>
            <div class="login-api-box fr">
                <?php if($agent_info['username'] != ''): ?>
                <span>欢迎 <?php echo $agent_info['username']; ?>。</span>/
                <span><a href="<?php echo url('login/loginOut'); ?>">退出</a></span>
                <?php else: ?>
                <span><a href="/">登录</a></span>/
                <span>注册</span>
                <?php endif; ?>
            </div>
        </div>
    </div>
    <div class="header-bottom-wrap">
        <div class="header-bottom">
            <div class="second-logo-box">
                <a href="javascript:void(0)">
                    <img src="/home/images/teacher-logo.png" alt="">
                </a>
            </div>
        </div>
    </div>
</div>
<div class="user-center-wrap">
    <div class="user-center">
        <div class="bread-nav">
                <span>
                    <a href="javascript:void(0)">首页 ></a>
                </span>
            <span>
                    <a href="javascript:void(0)">用户中心</a>
                </span>
        </div>
        <div class="user-center-main clearfixa">
            



<div class="user-center-left fl">
    <ul class="user-center-nav">
        <?php if($type == 0): ?>
        <li <?php if($action == 'index'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/index'); ?>">基础资料</a></li>
        <li <?php if($action == 'employeelist'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/employeeList'); ?>">员工管理</a></li>
        <li <?php if($action == 'productlist'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/productList'); ?>">产品列表</a></li>
        <li <?php if($action == 'clientlist'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/clientList'); ?>">客户管理</a></li>
        <li <?php if($action == 'clineconsumer'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/clineConsumer'); ?>">客户消费统计</a></li>
        <li <?php if($action == 'performance'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/perFormance'); ?>">业绩提成统计</a></li>
        <li <?php if($action == 'distribution'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/distribution'); ?>">分销管理</a></li>
        <li <?php if($action == 'withdraw'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/withdraw'); ?>">提现管理</a></li>
        <li <?php if($action == 'updatepwd'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/updatePwd'); ?>">修改密码</a></li>
        <?php else: ?>
        <li <?php if($action == 'index'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/index'); ?>">基础资料</a></li>
        <li <?php if($action == 'productlist'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/productList'); ?>">产品列表</a></li>
        <li <?php if($action == 'clientlist'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/clientList'); ?>">客户管理</a></li>
        <li <?php if($action == 'clineconsumer'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/clineConsumer'); ?>">客户消费统计</a></li>
        <li <?php if($action == 'performance'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/perFormance'); ?>">业绩提成统计</a></li>
        <li <?php if($action == 'withdraw'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/withdraw'); ?>">提现管理</a></li>
        <li <?php if($action == 'updatepwd'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/updatePwd'); ?>">修改密码</a></li>
        <?php endif; ?>
    </ul>
</div>


            <div class="user-center-right fr">
                <div class="base-data-list data-list data-list data-list-show">
                    <!-- 所有页面右侧标题 -->
                    <p class="user-center-nav-title">
                        提现管理
                    </p>
                    <div class="cline-data">
                        <!-- table 普通选项卡 -->
                        <div class="table-item-box clearfixa">
                            <!-- 选中的状态 -->
                            <div class="table-item table-item-checked"><a href="javascript:void(0)" onclick="dis_record()">提现记录</a></div>
                            <!-- 未选中的状态 -->
                            <div class="table-item table-item-checked"><a href="javascript:void(0)" onclick="dis_apply()">提现申请</a></div>
                        </div>
                        <table class="table-title" id="record">
                            <tr>
                                <th>提现日期</th>
                                <th>提现金额</th>
                                <th>银行卡号</th>
                                <th>银行名称</th>
                                <th>银行户主</th>
                                <th>审核结果</th>
                            </tr>
                            <?php foreach($data as $k=>$v):  ?>
                            <tr>
                                <td><?php echo$v['withdraw_data'] ?></td>
                                <td><?php echo$v['withdraw_amount'] ?></td>
                                <td><?php echo$v['bank_id'] ?></td>
                                <td><?php echo$v['bank_name'] ?></td>
                                <td><?php echo$v['bank_head'] ?></td>
                                <td>
                                    <?php if($v['status'] == 1): ?>
                                    未通过
                                    <?php else: ?>
                                    已通过
                                    <?php endif; ?>
                                </td>
                            </tr>
                            <?php endforeach ?>
                        </table>
                        <div class="base-data-box" id="apply" style="display:none">
                            <form  class="form-left-space">
                                <div class="form-top-space">
                                    <label for="" class="information-nav-title">
                                        当前账户：
                                    </label>

                                    <span><?php echo $arr['user_name'] ?></span>
                                    <input type="hidden" name="proxy_id" value="<?php echo $arr['user_name'] ?>" id="proxy_id">
                                </div>
                                <!-- 账户余额 -->
                                <div class="form-top-space">
                                    <label for="" class="information-nav-title">
                                        账户余额：
                                    </label>
                                    <span class="red-money" id="red_money"><?php echo $arr['bankaccount_balance'] ?></span>
                                    <span class="information-hit">提现不通过的提现申请记录系统会还原该用户的账户余额</span>
                                </div>
                                <div class="form-top-space">
                                    <label for="" class="information-nav-title">
                                        提现金额：
                                    </label>
                                    <input type="text" class="second-inputbox" name="withdraw_amount" id="withdraw_amount">
                                    <span class="red-money">元</span>
                                    <span class="information-hit">可提现金额<?php echo $arr['bankaccount_balance'] ?>元</span>
                                </div>
                                <!-- 无注释大的input框 -->
                                <div class="form-top-space">
                                    <label for="" class="information-nav-title">
                                        <sup>*</sup>添加银行卡：
                                    </label>
                                    <input type="text" class="big-inputbox" name="bank_id" id="bank_id">
                                </div>
                                <!-- 无注释大的input框 -->
                                <div class="form-top-space">
                                    <label for="" class="information-nav-title">
                                        <sup>*</sup>开户银行名称：
                                    </label>
                                    <input type="text" class="big-inputbox" name="bank_name" id="bank_name">
                                </div>
                                <!-- 无注释大的input框 -->
                                <div class="form-top-space">
                                    <label for="" class="information-nav-title">
                                        <sup>*</sup>开户银行户主：
                                    </label>
                                    <input type="text" class="big-inputbox" name="bank_head" id="bank_head">
                                </div>
                                <!-- 居中的提交按钮 -->
                                <input type="button" class="center-btn"  id="button" value="申请提现">

                            </form>
                        </div>

                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
<div class="footer-container">
        <div class="footer-top">
            <div class="footer-top-content">
                <div class="friendlink-web">合作网站</div>
                <ul class="footer-friendlink">
                    <li>
                        <a href="http://www.people.com.cn/" target="_blank">人民网</a>
                    </li>
                    <li>
                        <a href="http://www.xinhuanet.com/" target="_blank">新华网</a>
                    </li>
                    <li>
                        <a href="http://www.gmw.cn/" target="_blank">光明网</a>
                    </li>
                    <li>
                        <a href="http://www.china.com.cn/" target="_blank">中国网</a>
                    </li>
                    <li>
                        <a href="http://bjrb.bjd.com.cn/" target="_blank">北京日报</a>
                    </li>
                    <li>
                        <a href="https://www.jfdaily.com/" target="_blank">解放日报</a>
                    </li>
                    <li>
                        <a href="http://www.wenming.cn/" target="_blank">中国文明网</a>
                    </li>
                    <li>
                        <a href="http://www.chinakongzi.org/" target="_blank">中国孔子网</a>
                    </li>
                    <li>
                        <a href="http://www.gjctwh.com/" target="_blank">国家传统文化产业促进网</a>
                    </li>
                    <li>
                        <a href="http://guji.artx.cn/" target="_blank">中国古籍全录</a>
                    </li>
                    <li>
                        <a href="http://publish.ancientbooks.cn/docShuju/platformSublibIndex.jspx?libId=6" target="_blank">中华经典古籍库</a>
                    </li>
                    <li>
                        <a href="http://www.confuchina.com/" target="_blank">中国儒学网</a>
                    </li>
                    <li>
                        <a href="http://www.cnki.net/" target="_blank">中国知网</a>
                    </li>
                    <li>
                        <a href="http://www.tcpc.org.cn" target="_blank">中国传统文化促进会</a>
                    </li>
                    <li>
                        <a href="http://www.zhyxctwh.com/" target="_blank">中华国学研究院</a>
                    </li>
                    <li>
                        <a href="http://www.orgcc.com/" target="_blank">中国文化艺术网</a>
                    </li>
                    <li>
                        <a href="http://www.guoxue.com/" target="_blank">国学网</a>
                    </li>
                    <li>
                        <a href="http://www.chuanxi.com.cn/" target="_blank">佛教慧日网</a>
                    </li>
                    <li>
                        <a href="http://www.hxlsw.com/" target="_blank">浩学历史网</a>
                    </li>
                    <li>
                        <a href="http://www.fxsp.org/" target="_blank">佛学视频网</a>
                    </li>
                    <li>
                        <a href="http://www.zgchuantongwenhua.com/" target="_blank">传统文化网</a>
                    </li>
                    <li>
                        <a href="http://www.shanxin.cn/" target="_blank">善信网</a>
                    </li>
                    <li>
                        <a href="http://duguoxue.cn/" target="_blank">读国学网</a>
                    </li>
                    <li>
                        <a href="http://www.songdu.net/" target="_blank">中华诵读网</a>
                    </li>
                    <li>
                        <a href="http://www.chinawenhua.com.cn/" target="_blank">传统文化杂谈</a>
                    </li>
                    <li>
                        <a href="https://www.shunyuanwenhua.com/" target="_blank">舜缘文化</a>
                    </li>
                    <li>
                        <a href="http://www.zhjd.org/" target="_blank">中华经典网</a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="footer-middle clearfixa">
            <div class="footer-middle1">
                <ul>
                    <li>
                        <a href="/About/jz">家长监控</a>
                    </li>
                    <li>
                        <a href="/About/zhuce">游戏实名注册</a>
                    </li>
                    <li>
                        <a href="/About/jf">游戏纠纷处理</a>
                    </li>
                </ul>
            </div>
            <div class="footer-middle1">
                <ul>
                    <li>
                        <a href="/about/synopsis">华文在线</a>
                    </li>
                    <li>
                        <a href="/About">关于我们</a>
                    </li>
                    <!-- <li>
                                <a href="/Bid">文创招标</a>
                            </li> -->
                    <li>
                        <a href="/bid/bid3">中华大观园</a>
                    </li>
                    <li>
                        <a href="/bid/bid1">5+1工程</a>
                    </li>
                </ul>
            </div>
            <div class="footer-middle2">
                <ul>
                    <li class="footer-text-bold">联系我们</li>
                    <li>电话：010-87729542</li>
                    <li>地区:北京市朝阳区伊莎文化广场A座201</li>
                </ul>
            </div>
            <div class="footer-middle5">
                <ul>
                    <li class="footer-text-bold">商务合作</li>
                    <li>email：shichangbu@zhssw.com</li>
                    <li>手机：13466548198</li>
                </ul>
            </div>
            <div class="footer-middle3">
                <ul>
                    <li class="footer-text-bold">相关资质</li>
                    <li><a href="/web/images/pdf/gb.pdf" target="_blank">广播节目制作许可证</a></li>
                    <li><a href="/web/images/pdf/rz.pdf" target="_blank">软件著作权</a></li>
                    <li><a href="/web/images/pdf/wl.pdf" target="_blank">网络文化经营许可证</a></li>
                </ul>
            </div>
            <div class="footer-middle4">
                <!-- <p class="footer-middle4-attention">关注我们</p> -->
                <div class="footer-divs">
                    <div class="footer-erweima">
                        <div class="footer-erweima-img">
                            <img src="/home/images/erweima.jpg" alt="二维码图片">
                        </div>
                        <p class="footer-middle4-weixin">官方微信</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer-bottom">
            <p class="ac">
                抵制不良游戏　拒绝盗版游戏　注意自我保护　谨防受骗上当　适度游戏益脑　沉迷游戏伤身　合理安排时间　享受健康生活
            </p>
        </div>
        <div class="footer-bottom">
            <p>中华盛视网 Copyright © 2017 www.zhssw.com 京ICP备18017348号
                <script type="text/javascript">
                    var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
                    document.write(unescape("%3Cspan id='cnzz_stat_icon_1274773821'%3E%3C/span%3E%3Cscript src='" +
                        cnzz_protocol +
                        "s13.cnzz.com/z_stat.php%3Fid%3D1274773821%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"
                    ));
                </script><span id="cnzz_stat_icon_1274773821"><a href="https://www.cnzz.com/stat/website.php?web_id=1274773821"
                        target="_blank" title="站长统计"><img border="0" hspace="0" vspace="0" src="http://icon.cnzz.com/img/pic.gif"></a></span>
                <script src=" http://s13.cnzz.com/z_stat.php?id=1274773821&amp;show=pic" type="text/javascript"></script>
                <script src="http://c.cnzz.com/core.php?web_id=1274773821&amp;show=pic&amp;t=z" charset="utf-8" type="text/javascript"></script>
            </p>
        </div>
    </div>

</body>
</html>
<script src="/home/js/jquery-1.11.1.min.js"></script>
<script src="http://libs.baidu.com/jquery/2.1.1/jquery.min.js"></script>
<script src="/home/js/layer-v/layer/layer.js"></script>
<script> 
    function dis_record(){
        document.getElementById('record').style.display='block';
        document.getElementById('apply').style.display='none';
    }
    function dis_apply(){
        document.getElementById('record').style.display='none';
        document.getElementById('apply').style.display='block';
    }
</script>

<script>
    var flag = false;
     
      $(document).on('blur','#withdraw_amount',function()
       {
            var withdraw_amount = $(this).val();
            
            var red_money = $('#red_money').text();
           
            var regwithdraw_amount = /^[0-9]*$/;

            if(withdraw_amount == "" || withdraw_amount > parseInt(red_money) || !regwithdraw_amount.test(withdraw_amount))
            {
                layer.tips('提现金额必须为小于您的余额！', '#withdraw_amount'); 

                flag = false;
            }else
            {
                flag = true;
            }
       })
     $(document).on('blur','#bank_name',function()
       {
            var bank_name = $(this).val();
            
            var regbank_name = /^[\u4e00-\u9fa5]+$/;

            if(bank_name == "" || bank_name.length < 2 || !regbank_name.test(bank_name))
            {
                layer.tips('银行名称必须为中文,不为空！', '#bank_name'); 

                flag = false;
            }else
            {
                flag = true;
            }
       })
      
     $(document).on('blur','#bank_id',function()
       {
            var bank_id = $(this).val();

           var regbank_id = /^\d{19}$/g; 

            if(bank_id == "" || !regbank_id.test(bank_id))
            {
                layer.tips('银行卡号格式不正确！', '#bank_id');

                flag = false;
            }
            else
            {
                flag = true;
            }      
       })
     $(document).on('blur','#bank_head',function()
       {
            var bank_head = $(this).val();
            
            var regbank_head = /^[\u4e00-\u9fa5]+$/;

            if(bank_head == "" || bank_head.length < 2 || !regbank_head.test(bank_head))
            {
                layer.tips('户主必须为中文,不为空！', '#bank_head'); 

                flag = false;
            }else
            {
                flag = true;
            }
       })
   
       $(document).on('click','#button',function(){
            if(flag == false)
            {
                layer.msg('请填写提现信息！', function(){
                //关闭后的操作
                return false;
                });
                
            }else
            {             
                var proxy_id = $('#proxy_id').val();
                var withdraw_amount = $('#withdraw_amount').val();
                var bank_id = $('#bank_id').val();
                var bank_name = $('#bank_name').val();
                var bank_head = $('#bank_head').val();
                $.ajax({
                    url:"<?php echo url('base/apply'); ?>",
                    data:{
                        proxy_id : proxy_id,
                        withdraw_amount : withdraw_amount,
                        bank_id : bank_id,
                        bank_name : bank_name,
                        bank_head : bank_head
                    },
                    dataType:'json',
                    type:'post',
                    success:function(data)
                    {
                        if(data.code == '1005')
                        {
                              layer.msg('申请已提交', {
                              icon: 16
                              ,shade: 0.01
                            });
                            window.location.href = 'withdraw';
                        }else
                        {
                            window.location.href = 'withdraw';
                        }                      
                    }
                })
            }
        });  
</script>
